package com.zy.design.observer.v2;

import com.zy.design.observer.v1.Customer;

/**
 * @author hugx
 * @create 2018-09-30 10:16
 */
public class TestV2 {
    public static void main(String[] args) {
        Customer c1=new Customer("张三");
        Customer c2=new Customer("李四");

        PromotionObserver observer=new PromotionObserver();
        observer.regeditCustomer(c1);
        observer.regeditCustomer(c2);
        observer.activity("国庆");
    }
}
